<!-- <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="wanlshop/shop/index" data-field="shopname" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Threshold')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-threshold" class="form-control selectpicker" name="row[threshold]">
                {foreach name="thresholdList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.threshold"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Good_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-good_ids" data-rule="required" data-source="wanlshop/goods/index" data-field="title" data-multiple="true" class="form-control selectpage" name="row[good_ids]" type="text" value="{$row.good_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Atype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-atype" class="form-control selectpicker" name="row[atype]">
                {foreach name="atypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.atype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oktype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-oktype" class="form-control selectpicker" name="row[oktype]">
                {foreach name="oktypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.oktype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-customer" class="form-control selectpicker" name="row[customer]">
                {foreach name="customerList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.customer"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Purchase')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-purchase" class="form-control selectpicker" name="row[purchase]">
                {foreach name="purchaseList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.purchase"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-stype" class="form-control selectpicker" name="row[stype]">
                {foreach name="stypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.stype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Balance')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-balance" class="form-control selectpicker" name="row[balance]">
                {foreach name="balanceList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.balance"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ctype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-ctype" class="form-control selectpicker" name="row[ctype]">
                {foreach name="ctypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.ctype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dtype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-dtype" class="form-control selectpicker" name="row[dtype]">
                {foreach name="dtypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.dtype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Itype')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-itype" class="form-control selectpicker" name="row[itype]">
                {foreach name="itypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.itype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pname" class="form-control" name="row[pname]" type="text" value="{$row.pname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pdescribe')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pdescribe" class="form-control" name="row[pdescribe]" type="number" value="{$row.pdescribe|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form> -->
<style>
    body {
        background-color: #fff;
    }

    .label-block {
        display: block;
        margin-bottom: 5px;
    }

    .image-box {
        display: flex;
        align-items: center;
        font-size: 12px;
        color: #ff3232;

    }

    .image-box .item {
        border: 1px solid transparent;
        padding: 5px;
        margin-right: 10px;
    }

    .image-box .active {
        border-color: #af92fb;
    }

    .image-box span {
        cursor: pointer;
    }

    .image-box img {
        width: 60px;
        height: 60px;
    }

    .image-popup {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        overflow: hidden;
    }

    .image-popup img {
        max-width: 100%;
        max-height: 100%;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Threshold')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="thresholdList" item="vo"}
                <label class="label-block" for="row[threshold]-{$key}"><input class="radio-ipt"
                        id="row[threshold]-{$key}" name="row[threshold]" type="radio" value="{$key}" {in name="key"
                        value="$row.threshold" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group select-good " style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Good_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-good_ids" data-source="wanlshop/goods/index" data-field="title" data-multiple="true"
                class="form-control selectpage" name="row[good_ids]" type="text" value="{$row.good_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Atype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="atypeList" item="vo"}
                <label class="label-block" for="row[atype]-{$key}"><input id="row[atype]-{$key}" name="row[atype]"
                        type="radio" value="{$key}" {in name="key" value="$row.atype" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Oktype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="oktypeList" item="vo"}
                <label class="label-block" for="row[oktype]-{$key}"><input id="row[oktype]-{$key}" name="row[oktype]"
                        type="radio" value="{$key}" {in name="key" value="$row.oktype" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="customerList" item="vo"}
                <label class="label-block" for="row[customer]-{$key}"><input id="row[customer]-{$key}"
                        name="row[customer]" type="radio" value="{$key}" {in name="key" value="$row.customer"
                        }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Purchase')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="purchaseList" item="vo"}
                <label class="label-block" for="row[purchase]-{$key}"><input id="row[purchase]-{$key}"
                        name="row[purchase]" type="radio" value="{$key}" {in name="key" value="$row.purchase"
                        }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="stypeList" item="vo"}
                <label class="label-block" for="row[stype]-{$key}"><input id="row[stype]-{$key}" name="row[stype]"
                        type="radio" value="{$key}" {in name="key" value="$row.stype" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Balance')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="balanceList" item="vo"}
                <label class="label-block" for="row[balance]-{$key}"><input id="row[balance]-{$key}" name="row[balance]"
                        type="radio" value="{$key}" {in name="key" value="$row.balance" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ctype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="ctypeList" item="vo"}
                <label class="label-block" for="row[ctype]-{$key}"><input id="row[ctype]-{$key}" name="row[ctype]"
                        type="radio" value="{$key}" {in name="key" value="$row.ctype" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dtype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="dtypeList" item="vo"}
                <label class="label-block" for="row[dtype]-{$key}"><input id="row[dtype]-{$key}" name="row[dtype]"
                        type="radio" value="{$key}" {in name="key" value="$row.dtype" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Itype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div style="display: none;">
                <select id="c-itype" class="form-control selectpicker" name="row[itype]">
                    {foreach name="itypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.itype" }selected{/in}>{$vo}</option>
                    {/foreach}
                </select>
            </div>
            <div class="image-box">
                <div class="item" data-tab="tab1">
                    <img src="/assets/img/img1.png" alt="">
                </div>
                <div class="item" data-tab="tab1">
                    <img src="/assets/img/img2.png" alt="">
                </div>
                <div class="item">
                    <img src="/assets/img/img3.png" alt="">
                </div>
                <div class="item">
                    <img src="/assets/img/img4.png" alt="">
                </div>
                <span>查看示例</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pname')}:</label>
        <div class="col-xs-12 col-sm-8" style="display: flex;align-items: center;">
            <input style="width: 300px;margin-right: 10px;" id="c-pname" class="form-control" name="row[pname]"
                type="text" value="{$row.pname|htmlentities}">
            <span style="font-size: 12px;">可自定文推广员的名称，创如代理人、合伙人(不可超20个字)</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pdescribe')}:</label>
        <div class="col-xs-12 col-sm-8" style="display: flex;align-items: center;">
            <input id="c-pdescribe" class="form-control" style="width: 400px;margin-right: 10px;" name="row[pdescribe]"
                 value="{$row.pdescribe|htmlentities}">
            <span class="wenan" style="cursor: pointer; font-size: 12px;color: #ff3232;">查看示例</span>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>